package org.jeecg.modules.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.vo.UserOrgVo;
import org.jeecg.modules.system.entity.SysOrganization;
import org.jeecg.modules.system.vo.SysOrganizationVO;

import java.util.List;

/**
 * @Description: sys_organization
 * @Author: jeecg-boot
 * @Date: 2021-10-29
 * @Version: V1.0
 */
public interface ISysOrganizationService extends IService<SysOrganization> {
    void queryParentIdsById(List<String> parentIds, String organizationId);

    public void queryChildren(SysOrganizationVO sysOrganizationVO);

    public Result<SysOrganization> queryByUserId(String userId);

    /**
     * 查询用户机构或上级机构
     *
     * @param userId 用户ID
     */
    UserOrgVo queryOrgs(String userId, Boolean needParents);
}
